package com.iv.durian.cloud.dao.mapper;

import com.iv.durian.cloud.Notice;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface NoticeMapper {
    Notice get(@Param("id") Integer id, @Param("lessionId") Integer lessionId);

    int add(@Param("notice") Notice notice);

    int update(@Param("notice") Notice notice);

    int remove(@Param("id") Integer id);

    int count(@Param("notice") Notice notice);

    List<Notice> list(@Param("lessionId") Integer lessionId, @Param("offset") Integer offset, @Param("limit") Integer limit);
}
